package org.example.service.imp;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.example.entity.Contents;
import org.example.mapper.ContentsMapper;
import org.example.service.ContentsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author ljh
 * @version 1.0
 * @Description
 * @date 2025/7/25 09:43
 */
@Service
public class ContentsServiceImp extends ServiceImpl<ContentsMapper, Contents> implements ContentsService {
    @Autowired
    private ContentsMapper contentsMapper;

    @Override
    public List<Contents> getAllContents() {
        return contentsMapper.getAllContents();
    }
}
